package listeners;

import utilities.Workbench;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.EditText;

public class newfilenamelistener implements OnClickListener {

	private Workbench workbench;
	private EditText editText;
	int i =0;

	public newfilenamelistener(Workbench wb,EditText editText) {
		this.workbench = wb;
		this.editText = editText;
	}

	@Override
	public void onClick(View v) {
		
		this.workbench.setFilename(editText.getText().toString());
		
		i++;

		workbench.getConsole().setText(workbench.getFilename()+" "+i);
	}

}
